package com.xul.yygh.hosp.repository;

import model.com.xul.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author xul
 * @create 2021-07-11 15:27
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    /**
     * 根据医院编号 科室编号 查询科室信息
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

}
